/*
 * LocalClient.cpp
 *
 *  Created on: Nov 21, 2014
 *      Author: toti
 */

#include <Network/LocalClient.hpp>

LocalClient::LocalClient(TCPConnection *tcpConnection) :
		LocalNode(tcpConnection, LocalNode::LOCAL_NODE_CLIENT) {

	networkClient = 0;
	localClientState = UNREGISTERED;

}

MessagePackage *LocalClient::buildPackage(std::string& input){

	ClientMessagePackage *clientMessagePackage = new ClientMessagePackage(this, input);
	clientMessagePackage->parseMessageString();
	return clientMessagePackage;

}

void LocalClient::setNetworkClient(NetworkClient *networkClient) {
	this->networkClient = networkClient;
}

NetworkClient *LocalClient::getNetworkClient() {
	return networkClient;
}

